

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>mindspore.scipy &mdash; MindSpore master documentation</title>
  

  
  <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />

  
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
        <script src="../_static/language_data.js"></script>
        <script async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-AMS-MML_HTMLorMML"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <link rel="next" title="mindspore.scipy.linalg.block_diag" href="scipy/mindspore.scipy.linalg.block_diag.html" />
    <link rel="prev" title="mindspore.profiler" href="mindspore.profiler.html" /> 
</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search" >
          

          
            <a href="../index.html" class="icon icon-home"> MindSpore
          

          
          </a>

          
            
            
          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <p class="caption"><span class="caption-text">MindSpore Python API</span></p>
<ul class="current">
<li class="toctree-l1"><a class="reference internal" href="mindspore.html">mindspore</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.common.initializer.html">mindspore.common.initializer</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.communication.html">mindspore.communication</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.compression.html">mindspore.compression</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.context.html">mindspore.context</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.html">mindspore.dataset</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.audio.html">mindspore.dataset.audio</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.config.html">mindspore.dataset.config</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.text.html">mindspore.dataset.text</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.transforms.html">mindspore.dataset.transforms</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.dataset.vision.html">mindspore.dataset.vision</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.mindrecord.html">mindspore.mindrecord</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.html">mindspore.nn</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.probability.html">mindspore.nn.probability</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.nn.transformer.html">mindspore.nn.transformer</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.numpy.html">mindspore.numpy</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.ops.html">mindspore.ops</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.parallel.html">mindspore.parallel</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.parallel.nn.html">mindspore.parallel.nn</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.profiler.html">mindspore.profiler</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">mindspore.scipy</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#mindspore-scipy-linalg">mindspore.scipy.linalg</a><ul>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.linalg.block_diag.html">mindspore.scipy.linalg.block_diag</a></li>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.linalg.eigh.html">mindspore.scipy.linalg.eigh</a></li>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.linalg.inv.html">mindspore.scipy.linalg.inv</a></li>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.linalg.lu.html">mindspore.scipy.linalg.lu</a></li>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.linalg.lu_factor.html">mindspore.scipy.linalg.lu_factor</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#mindspore-scipy-optimize">mindspore.scipy.optimize</a><ul>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.optimize.line_search.html">mindspore.scipy.optimize.line_search</a></li>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.optimize.minimize.html">mindspore.scipy.optimize.minimize</a></li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="#mindspore-scipy-sparse-linalg">mindspore.scipy.sparse.linalg</a><ul>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.sparse.linalg.cg.html">mindspore.scipy.sparse.linalg.cg</a></li>
<li class="toctree-l3"><a class="reference internal" href="scipy/mindspore.scipy.sparse.linalg.gmres.html">mindspore.scipy.sparse.linalg.gmres</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.train.html">mindspore.train</a></li>
<li class="toctree-l1"><a class="reference internal" href="mindspore.boost.html">mindspore.boost</a></li>
</ul>
<p class="caption"><span class="caption-text">MindSpore C++ API</span></p>
<ul>
<li class="toctree-l1"><a class="reference external" href="https://www.mindspore.cn/lite/api/zh-CN/master/api_cpp/mindspore.html">MindSpore Lite↗</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../index.html">MindSpore</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
        
      <li>mindspore.scipy</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../_sources/api_python/mindspore.scipy.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="mindspore-scipy">
<h1>mindspore.scipy<a class="headerlink" href="#mindspore-scipy" title="Permalink to this headline">¶</a></h1>
<p>Scipy-like interfaces in mindspore.</p>
<div class="section" id="mindspore-scipy-linalg">
<h2>mindspore.scipy.linalg<a class="headerlink" href="#mindspore-scipy-linalg" title="Permalink to this headline">¶</a></h2>
<p>Linear algebra submodule.</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 9%" />
<col style="width: 64%" />
<col style="width: 27%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><strong>API Name</strong></p></td>
<td><p><strong>Description</strong></p></td>
<td><p><strong>Supported Platforms</strong></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="scipy/mindspore.scipy.linalg.block_diag.html#mindspore.scipy.linalg.block_diag" title="mindspore.scipy.linalg.block_diag"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.linalg.block_diag</span></code></a></p></td>
<td><p>Create a block diagonal matrix from provided arrays.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="scipy/mindspore.scipy.linalg.eigh.html#mindspore.scipy.linalg.eigh" title="mindspore.scipy.linalg.eigh"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.linalg.eigh</span></code></a></p></td>
<td><p>Solve a standard or generalized eigenvalue problem for a complex Hermitian or real symmetric matrix.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="scipy/mindspore.scipy.linalg.inv.html#mindspore.scipy.linalg.inv" title="mindspore.scipy.linalg.inv"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.linalg.inv</span></code></a></p></td>
<td><p>Compute the inverse of a matrix.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="scipy/mindspore.scipy.linalg.lu.html#mindspore.scipy.linalg.lu" title="mindspore.scipy.linalg.lu"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.linalg.lu</span></code></a></p></td>
<td><p>Compute pivoted LU decomposition of a general matrix.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="scipy/mindspore.scipy.linalg.lu_factor.html#mindspore.scipy.linalg.lu_factor" title="mindspore.scipy.linalg.lu_factor"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.linalg.lu_factor</span></code></a></p></td>
<td><p>Compute pivoted LU decomposition of a square matrix, and its outputs can be directly used as the inputs of <cite>lu_solve</cite>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="mindspore-scipy-optimize">
<h2>mindspore.scipy.optimize<a class="headerlink" href="#mindspore-scipy-optimize" title="Permalink to this headline">¶</a></h2>
<p>Optimize submodule.</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 9%" />
<col style="width: 64%" />
<col style="width: 27%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><strong>API Name</strong></p></td>
<td><p><strong>Description</strong></p></td>
<td><p><strong>Supported Platforms</strong></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="scipy/mindspore.scipy.optimize.line_search.html#mindspore.scipy.optimize.line_search" title="mindspore.scipy.optimize.line_search"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.optimize.line_search</span></code></a></p></td>
<td><p>Inexact line search that satisfies strong Wolfe conditions.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="scipy/mindspore.scipy.optimize.minimize.html#mindspore.scipy.optimize.minimize" title="mindspore.scipy.optimize.minimize"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.optimize.minimize</span></code></a></p></td>
<td><p>Minimization of scalar function of one or more variables.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="mindspore-scipy-sparse-linalg">
<h2>mindspore.scipy.sparse.linalg<a class="headerlink" href="#mindspore-scipy-sparse-linalg" title="Permalink to this headline">¶</a></h2>
<p>Sparse linear algebra submodule.</p>
<table class="longtable docutils align-default">
<colgroup>
<col style="width: 9%" />
<col style="width: 64%" />
<col style="width: 27%" />
</colgroup>
<tbody>
<tr class="row-odd"><td><p><strong>API Name</strong></p></td>
<td><p><strong>Description</strong></p></td>
<td><p><strong>Supported Platforms</strong></p></td>
</tr>
<tr class="row-even"><td><p><a class="reference internal" href="scipy/mindspore.scipy.sparse.linalg.cg.html#mindspore.scipy.sparse.linalg.cg" title="mindspore.scipy.sparse.linalg.cg"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.sparse.linalg.cg</span></code></a></p></td>
<td><p>Use Conjugate Gradient iteration to solve <span class="math notranslate nohighlight">\(Ax = b\)</span>.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
<tr class="row-odd"><td><p><a class="reference internal" href="scipy/mindspore.scipy.sparse.linalg.gmres.html#mindspore.scipy.sparse.linalg.gmres" title="mindspore.scipy.sparse.linalg.gmres"><code class="xref py py-obj docutils literal notranslate"><span class="pre">mindspore.scipy.sparse.linalg.gmres</span></code></a></p></td>
<td><p>GMRES solves the linear system <span class="math notranslate nohighlight">\(A x = b\)</span> for x, given A and b.</p></td>
<td><p><code class="docutils literal notranslate"><span class="pre">CPU</span></code> <code class="docutils literal notranslate"><span class="pre">GPU</span></code></p></td>
</tr>
</tbody>
</table>
</div>
</div>


           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="scipy/mindspore.scipy.linalg.block_diag.html" class="btn btn-neutral float-right" title="mindspore.scipy.linalg.block_diag" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="mindspore.profiler.html" class="btn btn-neutral float-left" title="mindspore.profiler" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2021, MindSpore.

    </p>
  </div>
    
    
    
    Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
    
    <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
    
    provided by <a href="https://readthedocs.org">Read the Docs</a>. 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>